package com.mixsmart.spellsql.where;

import com.mixsmart.spellsql.IWhere;

/**
 * OR实现类
 * @author lmq
 * @version 1.0
 * @since 1.0
 */
public class OrWhere extends CompositeWhere {

	private IWhere where;
	private IWhere exp;
	
	public OrWhere(CompositeWhere where,IWhere exp) {
		this.where = where;
		this.exp = exp;
	}
	
	@SuppressWarnings("unchecked")
	@Override
	public String build() {
		String conditionStr = where.build()+" and "+exp.build();
		super.getParam(where, exp);
		return conditionStr;
	}

}
